package question;

//import java.util.Random;

import track.TriathlonTrack;
import athlete.Athlete;

public class AthleteCreator {
	public static Athlete[] createAthletes(int n){
		Athlete[] athletes;
		athletes = new Athlete[n];
		
		//Random generator = new Random();
		for(int i=0; i<n; i++){
			athletes[i] = new Athlete("Participant#" + (i+1));
		}
		
		return athletes;
	}
	
	public static AthleteRunnable[] createAthleteRunnables(int n, Athlete[] athletes, TriathlonTrack track){
		AthleteRunnable[] athleteRunnables = new AthleteRunnable[n];
		
		for(int i=0; i<n; i++){
			athleteRunnables[i] = new AthleteRunnable(athletes[i], track);
		}
		
		return athleteRunnables;
	}
}
